PaperSize

fun PaperSize(width: Double, height: Double, unit: PaperSize.Unit, name: String? = null): PaperSize
fun PaperSize(width: Double, height: Double, unit: PaperSize.Unit, name: String? = null): PaperSize

Creates a new instance of PaperSize with the given parameters.

Since

8.0.0

Parameters

width

The width of the paper.

height

The height of the paper.

unit

The width and height measurement unit.

name

The name of the paper size.

Throws

if width or height is negative, or if name is empty or blank.